package com.laiyizhan.common.code;

import javax.servlet.http.HttpSession;

/**
 * 返回提示语
 * Created by folie
 */
public class ResponseMessage {

    public enum MessageType {
        success, info, warning, error
    }

    public static void resMessage(MessageType type, String message, HttpSession session) {
        session.setAttribute("toast_message", message);
        session.setAttribute("message_type", type.name());
    }
}
